package com.shop.api.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@FeignClient(name = "shop-service-order")
public interface OrderFeign {

    //显示订单
    @GetMapping("/order/service/order/getOrderInfo")
    public Model showOrder(@RequestParam("ids") String ids,@RequestParam("nums")  String nums,@RequestParam("model")  Model model,@RequestParam("entity")  HttpServletResponse response,@RequestParam("request")  HttpServletRequest request);

    //提交订单
    @GetMapping("/order/service/order/getPay")
    public Model getPay(@RequestParam("orderItemCodes") String orderItemCodes,@RequestParam("orderNums") String orderNums,@RequestParam("address") String address,@RequestParam("shippingPrice") float shippingPrice,@RequestParam("request") HttpServletRequest request,@RequestParam("response") HttpServletResponse response);
}
